/**************************************\
			   CODEMIRROR
\**************************************/

.CodeMirror {
  line-height: 1em;
  font-family: 'Ubuntu Mono', sans-serif;
  padding-top:3px;
  padding-left:3px;
  text-align: left;
  min-height:75px;
  @include rounded(2px);
  @include box-shadow(inset 2px 2px 2px #ccc,#ccc 1px 1px 2px);
  border:1px solid #ccc;
  background:white;
  position:relative;
  overflow:hidden;
}
.CodeMirror:after {
    font-family:'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helvetica, sans-serif;
	position: absolute;
	top:20px;
	right: -50px;
	width: 150px;
	height: 25px;
	line-height: 25px;
	font-size: 1.2em;
	font-weight: bold;
	color: #fff;
	content:"CODE";
	@include text-shadow(#999 1px 1px 1px);
	background: rgb(255,168,76);
	background: -moz-linear-gradient(top,  rgba(255,168,76,1) 0%, rgba(255,123,13,1) 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,168,76,1)), color-stop(100%,rgba(255,123,13,1)));
	background: -webkit-linear-gradient(top,  rgba(255,168,76,1) 0%,rgba(255,123,13,1) 100%);
	background: -o-linear-gradient(top,  rgba(255,168,76,1) 0%,rgba(255,123,13,1) 100%);
	background: -ms-linear-gradient(top,  rgba(255,168,76,1) 0%,rgba(255,123,13,1) 100%);
	background: linear-gradient(top,  rgba(255,168,76,1) 0%,rgba(255,123,13,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffa84c', endColorstr='#ff7b0d',GradientType=0 );
	text-align: center;
	@include box-shadow(0 1px 5px #999);
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}
.CodeMirror-scroll {
  overflow: auto;
  position: relative;
  outline: none;
}
.CodeMirror-gutter {
  position: absolute; left: 0; top: 0;
  z-index: 10;
  background-color: #f7f7f7;
  border-right: 1px solid #eee;
  min-width: 2em;
  height: 100%;
}
.CodeMirror-gutter-text {
  color: #aaa;
  text-align: right;
  padding: .4em .2em .4em .4em;
  white-space: pre !important;
}
.CodeMirror-lines {
  padding: .4em;
  white-space: pre;
}
.CodeMirror pre {
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  -o-border-radius: 0;
  border-radius: 0;
  border-width: 0; margin: 0; padding: 0; background: transparent;
  font-family: inherit;
  font-size: 14px;
  padding: 0; margin: 0;
  white-space: pre;
  word-wrap: normal;
  line-height: inherit;
  color: inherit;
}
.CodeMirror-wrap pre {
  word-wrap: break-word;
  white-space: pre-wrap;
  word-break: normal;
}
.CodeMirror-wrap .CodeMirror-scroll {
  overflow-x: hidden;
}
.CodeMirror textarea {
  outline: none !important;
}
.CodeMirror pre.CodeMirror-cursor {
  z-index: 10;
  position: absolute;
  visibility: hidden;
  border-left: 1px solid black;
  border-right: none;
  width: 0;
}
.cm-keymap-fat-cursor pre.CodeMirror-cursor {
  width: auto;
  border: 0;
  background: transparent;
  background: rgba(0, 200, 0, .4);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#6600c800, endColorstr=#4c00c800);
}
/* Kludge to turn off filter in ie9+, which also accepts rgba */
.cm-keymap-fat-cursor pre.CodeMirror-cursor:not(#nonsense_id) {
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}
.CodeMirror pre.CodeMirror-cursor.CodeMirror-overwrite {}
.CodeMirror-focused pre.CodeMirror-cursor {
  visibility: visible;
}

div.CodeMirror-selected { background: #d9d9d9; }
.CodeMirror-focused div.CodeMirror-selected { background: #d7d4f0; }

.CodeMirror-searching {
  background: #ffa;
  background: rgba(255, 255, 0, .4);
}

/* Default theme */

.cm-s-default span.cm-keyword {color: rgba(65, 105, 225, 1);font-weight:bold;} //echo function etc.
.cm-s-default span.cm-atom {color: blue;} 			//bool values
.cm-s-default span.cm-number {color: green;}			//mathematical numbers //CSS Number
.cm-s-default span.cm-def {color: fuchsia;}
.cm-s-default span.cm-variable {color: #6666cc;}    //CSS-property
.cm-s-default span.cm-variable-2 {color: teal;}		//variables
.cm-s-default span.cm-variable-3 {color: fuchsia;}
.cm-s-default span.cm-property {color: fuchsia;}
.cm-s-default span.cm-operator {color: blue;}		//operators
.cm-s-default span.cm-comment {color: orange;}  	//comment
.cm-s-default span.cm-string {color: green;}		//strings
.cm-s-default span.cm-string-2 {color: fuchsia;}
.cm-s-default span.cm-meta {color: gray;}			//Language describers
.cm-s-default span.cm-error {color: fuchsia;}
.cm-s-default span.cm-qualifier {color: fuchsia;}
.cm-s-default span.cm-builtin {color: fuchsia;}
.cm-s-default span.cm-bracket {color: fuchsia;}
.cm-s-default span.cm-tag {color: rgba(65, 105, 225, 1);font-style:italic;} //CSS-CLASS //HTML TAG //CSS-Attribute
.cm-s-default span.cm-attribute {color: blue;} 		//HTML - Attribute
.cm-s-default span.cm-header {color: fuchsia;}
.cm-s-default span.cm-quote {color: fuchsia;}
.cm-s-default span.cm-hr {color: fuchsia;}
.cm-s-default span.cm-link {color: fuchsia;}
.cm-s-default span.cm-word {color: #555;font-weight:bold;} //FUNCTION Name in text/x-php


span.cm-header, span.cm-strong {font-weight: bold;}
span.cm-em {font-style: italic;}
span.cm-emstrong {font-style: italic; font-weight: bold;}
span.cm-link {text-decoration: underline;}

div.CodeMirror span.CodeMirror-matchingbracket {color: fuchsia;}
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
